﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OnlineManagement.Web.webs
{
    public partial class SowInfo2Propagate : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //cId=" + data.d.CustomizeID +
            //"&fName="data.d.FeederName+"&tName="+data.d.TypeName;
            if (!Page.IsPostBack && Request.QueryString!=null)
            {
                //猪圈号不能为空,如为空，伪造信息
                if (Request.QueryString.Count > 0 && !string.IsNullOrEmpty(Request.QueryString["cId"].ToString()))
                {
                    lbMsg.Text = string.Empty;
                    panInfo.Visible = true;
                    lbPigpenName.Text = Request.QueryString["cId"].ToString();
                    lbFeederName.Text = Request.QueryString["fName"].ToString();
                    lbPigType.Text = Request.QueryString["tName"].ToString();
                    
                }
                else {
                    lbMsg.Text = "请选择母猪耳号,再查看母猪信息。";
                    panInfo.Visible = false;
                }
            }
        }
    }
}